home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD022c.dsk
/
AD.MENU.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
2KB
|
42 lines
10 REM AD.MENU
15 DIM A$(10):D$ = CHR$(4)
16 X = 0
17 IF PEEK(X) < >20 OR PEEK(X +2) >9 OR PEEK(X +1) < >40 THEN POKE X,20: POKE X +1,40: POKE X +2,1: POKE X +3,1
18 NP = PEEK(X +2):NF = PEEK(X +3)
19 GOSUB 4000
20 TEXT : HOME : SPEED= 255
30 HTAB 14: INVERSE : PRINT " AD.MENU ";: NORMAL : PRINT " PAGE ";NP
1000 I = 0
1010 I = I +1: IF I >9 GOTO 1200
1020 READ A$(I): IF A$(I) = "END" GOTO 1200
1030 PRINT : HTAB 01: PRINT I;" = ";A$(I): GOTO 1010
1200 VTAB 22: INVERSE : PRINT "G=GOBACK S=START OVER "
1210 IF A$(I) < >"END" THEN HTAB 25: VTAB 22: PRINT "M=MORE ";
1211 HTAB 1
1212 VTAB 23: PRINT "N=READ NEXT AD ("NP","NF") ";: HTAB 22: PRINT " ";
1220 NORMAL : VTAB 21: HTAB 1: GET R$: PRINT R$
1225 IF R$ = "M" AND A$(I) < >"END" THEN NP = NP +1:NF = 1: GOTO 20
1230 IF R$ = "S" THEN RESTORE :NP = 1:NF = 1: GOTO 20
1240 IF R$ = "G" THEN POKE X,0: POKE X +1,0: PRINT D$"RUN SOFT.ADS"
1242 IF R$ = "N" THEN 2010
1250 R = INT( VAL(R$)): IF R >0 AND R <I THEN NF = R: GOSUB 3000: PRINT D$"RUN AD.";A$(R)
1260 GOTO 1200
2000 REM NEXT
2010 RESTORE :N = NF +(9 *NP) -9
2020 FOR I = 1 TO N: READ R$: NEXT
2030 IF R$ = "END" THEN R$ = "G": GOTO 1240
2040 GOSUB 3000
2060 PRINT D$"RUN AD.";R$
3000 NF = NF +1: IF NF >9 THEN NF = 1:NP = NP +1
3010 POKE X +2,NP: POKE X +3,NF: RETURN
4000 K = 9 *(NP -1): IF K = 0 THEN RETURN
4010 FOR L = 1 TO K: READ Z$: NEXT
4020 RETURN
5000 DATA "ST.ELMO"
5010 DATA "SCREEN.MASTER"
5020 DATA "POINT.SPREAD"
5030 DATA "DATABIND"
5040 DATA "RAINBOW"
5050 DATA "G MAR"
5060 DATA "MACHINE.MAGIC"
9999 DATA "END"